<h1><%= "#{t(:listing)} #{t(:stock_logging_categories)}" %> </h1>

<table>
  <thead>
    <tr>
      <th><%= t :name %></th>
      <th><%= t :created_at %></th>
      <th><%= t :updated_at %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @stock_logging_categories.each do |stock_logging_category| %>
      <tr>
        <td><%= stock_logging_category.name %></td>
        <td><%= stock_logging_category.created_at %></td>
        <td><%= stock_logging_category.updated_at %></td>
        <td><%= stock_logging_category.created_by %></td>
        <td><%= stock_logging_category.updated_by %></td>
        <td><%= link_to "#{t(:show)}", stock_logging_category %></td>
        <td><%= link_to "#{t(:edit)}", edit_stock_logging_category_path(stock_logging_category) %></td>
        <td><%= link_to "#{t(:destroy)}", stock_logging_category, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_stock_logging_category)}", new_stock_logging_category_path %>
